// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出计算属性 ============================== //

export default {
  /**
   * 自定义计算属性 (可覆盖)
   */
  GETTER: ({ param, DICT: { CATEGORY = [], TYPE = [] } }) => {
    const category = CORE.dict(CATEGORY, param.statisticType).slice(0, 2)
    const type = CORE.dict(TYPE, param.energyType)
    const word = `${category}${type}`

    return { category: param.statisticType === 5 ? '监测点' : category, type, word }
  },
}
